package com.ks.user.service;

import com.ks.core.base.OperationContext;
import com.ks.core.dto.SearchCriteriaBase;
import com.ks.user.entity.PowerUserRole;
import com.baomidou.mybatisplus.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 用户角色表 服务类
 * </p>
 *
 * @author kingdee123
 * @since 2020-11-30
 */
public interface IPowerUserRoleService extends IService<PowerUserRole> {

    /**
     * 角色移除接口
     *
     * @param context
     * @param
     * @return
     */
    int addRoleList(OperationContext context, List<Integer> ids, Integer userId);


    /**
     * 角色移除接口
     *
     * @param context
     * @param
     * @return
     */
    int moveRoleList(OperationContext context, List<Integer> ids, Integer userId);

    Map<String, Object> getUserRoleList(OperationContext context, SearchCriteriaBase searchCriteriaBase);

}
